package cn.usian.service;
import cn.usian.common.R;
import cn.usian.entity.Category;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface CategoryService{
    Page<Category> findPage(Page<Category> page1);

    void addCategory(Category category);

    void delCategory(Long id);

    void updateCategory(Category category);

    R findById(Long id);

    Category findByName(String name);

    R findList(Integer type);

    List<Category> findAll();

}
